package com.glx.test.service;

import com.glx.test.pojo.User;
import com.glx.test.pojo.UserInfos;
import com.glx.test.response.LoginResponse;
import com.glx.test.response.RegisterResponse;
import com.glx.test.response.RegisterUserInfosResponse;
import com.glx.test.response.UserInfosResponse;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import java.util.Map;

public interface UserService {
    RegisterResponse register(User user);
    RegisterUserInfosResponse registerUserInfos(MultipartHttpServletRequest request);
    LoginResponse login(String account, String password);
    UserInfosResponse getUserInfos(Long user_id,String token);
    UserInfosResponse updateUserInfos(UserInfos userInfos,String token);
    UserInfosResponse updateUserInfos_headpicture_url(MultipartHttpServletRequest request);
    UserInfosResponse updateUser_password(Long user_id,String user_account,String OldPassword,String user_password,String token);
}
